
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '     C o m m a n d s   t o   T h e r e m i n o _ M o t o r s 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   E n a b l e C o n n e c t i o n 
 
 '   D i s a b l e C o n n e c t i o n 
 
 
 
 '   R e s e t A l l M u l t i t u r n V a l u e s 
 
 '   R e s e t A l l C a l i b r a t i o n V a l u e s 
 
 
 
 '   C a l i b r a t e   M o t o r   x   T o   n n . n 
 
 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '     S L O T   T E X T   f o r   C O M M A N D S 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 V a r i a b l e   N u m e r i c   S l o t _ C o m m a n d s   =   5 0 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '     B U T T O N S 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 B u t t o n   1   L a b e l   E n a b l e C o n n e c t i o n 
 
 B u t t o n   2   L a b e l   D i s a b l e C o n n e c t i o n 
 
 
 
 B u t t o n   4   L a b e l   R e s e t A l l M u l t i t u r n V a l u e s 
 
 B u t t o n   5   L a b e l   R e s e t A l l C a l i b r a t i o n V a l u e s 
 
 
 
 B u t t o n   7   L a b e l   " C a l i b r a t e   M o t o r   1   T o   0 " 
 
 B u t t o n   8   L a b e l   " C a l i b r a t e   M o t o r   1   T o   3 0 " 
 
 B u t t o n   9   L a b e l   " C a l i b r a t e   M o t o r   1   T o   6 0 " 
 
 B u t t o n   1 0   L a b e l   " C a l i b r a t e   M o t o r   1   T o   9 0 " 
 
 
 
 B u t t o n   1 2   L a b e l   S h o w W i n d o w 
 
 
 
 G o s u b   L o o p 
 
 S t o p 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '     L O O P 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 L a b e l   L o o p 
 
 	 ' V a r i a b l e   S t r i n g   R e s p o n s e 
 
 	 ' R e s p o n s e   =   S l o t T e x t ( S l o t _ R e s p o n s e s ) 
 
 	 ' P r i n t   R e s p o n s e 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 G o t o   L o o p 
 
 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     S E N D   C O M M A N D   ( d e f a u l t   t i m e o u t   =   0 . 5   S e c ) 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   S e n d C o m m a n d 
 
 	 V a r i a b l e   N u m e r i c   S C 1               ' < - -   P a r a m e t e r   D e s t i n a t . - S l o t 
 
 	 V a r i a b l e   S t r i n g     S C 2               ' < - -   P a r a m e t e r   C o m m a n d - S t r i n g 
 
 	 V a r i a b l e   N u m e r i c   S C 3   =   0 . 5   ' < - -   T h e   t i m e o u t   i n   s e c o n d s 
 
 	 V a r i a b l e   N u m e r i c   S C 4 
 
 	 S l o t T e x t   S C 1   =   S C 2 
 
 	 F o r   S C 4   =   0 . 1   T o   S C 3   S t e p   0 . 1 
 
 	 	 I f   S l o t T e x t ( S C 1 )   =   " " 
 
 	 	 	 E x i t 
 
 	 	 E n d I f 
 
 	 	 W a i t   S e c o n d s   0 . 1 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '     C O M M A N D S 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 L a b e l   E n a b l e C o n n e c t i o n 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s ) ( " E n a b l e C o n n e c t i o n " ) 
 
 R e t u r n 
 
 
 
 L a b e l   D i s a b l e C o n n e c t i o n 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s ) ( " D i s a b l e C o n n e c t i o n " ) 
 
 R e t u r n 
 
 
 
 L a b e l   R e s e t A l l M u l t i t u r n V a l u e s 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s ) ( " R e s e t A l l M u l t i t u r n V a l u e s " ) 
 
 R e t u r n 
 
 
 
 L a b e l   R e s e t A l l C a l i b r a t i o n V a l u e s 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s ) ( " R e s e t A l l C a l i b r a t i o n V a l u e s " ) 
 
 R e t u r n 
 
 
 
 L a b e l   C a l i b r a t e   M o t o r   1   T o   0 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s ) ( " C a l i b r a t e   M o t o r   1   T o   0 " ) 
 
 R e t u r n 
 
 L a b e l   C a l i b r a t e   M o t o r   1   T o   3 0 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s ) ( " C a l i b r a t e   M o t o r   1   T o   3 0 " ) 
 
 R e t u r n 
 
 L a b e l   C a l i b r a t e   M o t o r   1   T o   6 0 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s ) ( " C a l i b r a t e   M o t o r   1   T o   6 0 " ) 
 
 R e t u r n 
 
 L a b e l   C a l i b r a t e   M o t o r   1   T o   9 0 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s ) ( " C a l i b r a t e   M o t o r   1   T o   9 0 " ) 
 
 R e t u r n 
 
 
 
 L a b e l   S h o w W i n d o w 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s ) ( " S h o w W i n d o w " ) 
 
 R e t u r n 
 
 
 
 
 
 ' W A T C H   v 1 
 
 ' E X E C   D e s t X   =   1 2 
 
 